package com.ruoyi.labsafety.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.labsafety.mapper.LabSafetyCheckRelUserMapper;
import com.ruoyi.labsafety.domain.LabSafetyCheckRelUser;
import com.ruoyi.labsafety.service.ILabSafetyCheckRelUserService;

/**
 * 安全检查人员Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-30
 */
@Service
public class LabSafetyCheckRelUserServiceImpl implements ILabSafetyCheckRelUserService 
{
    @Autowired
    private LabSafetyCheckRelUserMapper labSafetyCheckRelUserMapper;

    /**
     * 查询安全检查人员
     * 
     * @param safetyCheckRelUserId 安全检查人员ID
     * @return 安全检查人员
     */
    @Override
    public LabSafetyCheckRelUser selectLabSafetyCheckRelUserById(Long safetyCheckRelUserId)
    {
        return labSafetyCheckRelUserMapper.selectLabSafetyCheckRelUserById(safetyCheckRelUserId);
    }

    /**
     * 查询安全检查人员列表
     * 
     * @param labSafetyCheckRelUser 安全检查人员
     * @return 安全检查人员
     */
    @Override
    public List<LabSafetyCheckRelUser> selectLabSafetyCheckRelUserList(LabSafetyCheckRelUser labSafetyCheckRelUser)
    {
        return labSafetyCheckRelUserMapper.selectLabSafetyCheckRelUserList(labSafetyCheckRelUser);
    }

    /**
     * 新增安全检查人员
     * 
     * @param labSafetyCheckRelUser 安全检查人员
     * @return 结果
     */
    @Override
    public int insertLabSafetyCheckRelUser(LabSafetyCheckRelUser labSafetyCheckRelUser)
    {
        return labSafetyCheckRelUserMapper.insertLabSafetyCheckRelUser(labSafetyCheckRelUser);
    }

    /**
     * 修改安全检查人员
     * 
     * @param labSafetyCheckRelUser 安全检查人员
     * @return 结果
     */
    @Override
    public int updateLabSafetyCheckRelUser(LabSafetyCheckRelUser labSafetyCheckRelUser)
    {
        return labSafetyCheckRelUserMapper.updateLabSafetyCheckRelUser(labSafetyCheckRelUser);
    }

    /**
     * 批量删除安全检查人员
     * 
     * @param safetyCheckRelUserIds 需要删除的安全检查人员ID
     * @return 结果
     */
    @Override
    public int deleteLabSafetyCheckRelUserByIds(Long[] safetyCheckRelUserIds)
    {
        return labSafetyCheckRelUserMapper.deleteLabSafetyCheckRelUserByIds(safetyCheckRelUserIds);
    }

    /**
     * 删除安全检查人员信息
     * 
     * @param safetyCheckRelUserId 安全检查人员ID
     * @return 结果
     */
    @Override
    public int deleteLabSafetyCheckRelUserById(Long safetyCheckRelUserId)
    {
        return labSafetyCheckRelUserMapper.deleteLabSafetyCheckRelUserById(safetyCheckRelUserId);
    }

    @Override
    public int deleteLabSafetyCheckRelUserByInstanceId(Long instanceId) {

        return labSafetyCheckRelUserMapper.deleteLabSafetyCheckRelUserByInstanceId(instanceId);
    }
}
